﻿@model IEnumerable<string>
<script src="@Links.Scripts.FileTypesModal_js" type="text/javascript"></script>
@{
    AjaxOptions ajaxOpts = new AjaxOptions
    {
        HttpMethod = HttpVerbs.Post.ToString(),
        OnSuccess = "OnFileTypesSelected"
    };
}
@using (Ajax.BeginForm(MVC.Reports.Filters.SaveFileTypes(), ajaxOpts, new { @onsubmit = "SelectAllOptions()" }))
{
    <input id="token" type="text" name="token" />
    <div id="controls_Con">
        <div id="FileTypesDialog_Select">
            @Html.ListBox("OtherTypes", new MultiSelectList(Model))
        </div>
        <div style="float: left">
            <button onclick="Copy('OtherTypes','SelectedTypes');return false">
                @Html.Raw(">")
            </button>
            <button onclick="Copy('SelectedTypes','OtherTypes');return false">
                @Html.Raw("<")
            </button>
        </div>
        <div style="float: left">
            @Html.ListBox("SelectedTypes", new MultiSelectList(new string[] { }))
        </div>
    </div>
    <input type="submit" value="Submit" id="submit" />
}